package com.stdspringboot.util;

import org.springframework.util.ResourceUtils;

import java.io.File;
import java.io.FileNotFoundException;

public class Test {
    public static void main(String[] args) throws FileNotFoundException {
        System.out.println("hello world！");

        String ms="RUNOOBxxx";
        int index=ms.indexOf("NOOB");
        System.out.println(index);

        File path=new File(ResourceUtils.getURL("classpath:").getPath());
        File file=new File(path.getAbsolutePath(),"static/uplaod/");
        //D:\zrgj_class\java_big_class\leave2\std_springboot\src\main\resources
        System.out.println(path);
        System.out.println(file);
    }
}
